package com.base.commons.elasticsearch.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Administrator
 */
@Configuration
@ConditionalOnProperty(prefix = "fbg.es",name = "index-prefix")
@ConfigurationProperties(prefix = "fbg.es")
@Data
public class EsIndexPrefixConfig {
    private String indexPrefix;
}
